import request from '@/utils/request'

// 查询外派记录列表
export function listExpatriaterecords(query) {
  return request({
    url: '/lhb/expatriaterecords/list',
    method: 'get',
    params: query
  })
}

// 查询外派记录详细
export function getExpatriaterecords(expatriateid) {
  return request({
    url: '/lhb/expatriaterecords/' + expatriateid,
    method: 'get'
  })
}

// 新增外派记录
export function addExpatriaterecords(data) {
  return request({
    url: '/lhb/expatriaterecords',
    method: 'post',
    data: data
  })
}

// 修改外派记录
export function updateExpatriaterecords(data) {
  return request({
    url: '/lhb/expatriaterecords',
    method: 'put',
    data: data
  })
}

// 删除外派记录
export function delExpatriaterecords(expatriateid) {
  return request({
    url: '/lhb/expatriaterecords/' + expatriateid,
    method: 'delete'
  })
}
